#!/usr/bin/env python
# encoding: utf-8
"""
service.py

Created by Bertrand Cachet on 2009-06-02.
Copyright (c) 2009 __MyCompanyName__. All rights reserved.
"""

from fetcher import Fetcher, DEFAULT_AGENT, COOKIEFILE

class Service(object):
    """Base class that all services will derived from."""
    def __init__(self, username, password, agent=DEFAULT_AGENT, http_proxy=None, cookie_file=None):
        super(Service, self).__init__()
        self._username = username
        self._password = password
        self._fetcher = Fetcher(agent, cookie_file, http_proxy)
        
    def login(self):
        """Identify user with service."""
        pass
        
    def get_all(self):
        return []
        
    def get_unread(self):
        return []
        
    def set_read(self, url):
        pass
        
    def set_unread(self, url):
        pass
    
    def add_subscription(self, url):
        pass
        
    def remove_subscription(self, url):
        pass
